<?php 
if(isset($_POST['sbmt'])){
	
	include_once 'connect.php';
	include_once 'core.php';
	include_once 'databasefunctions.php';
	
	$core = new CORE();
	$dbf = new DATABASEFUNCTIONS();
		
	$core->printArray($dbf->generateInsertArray('author_master', $_POST));	
}
?>
<html>
	<head>
		<title>My Framework</title>
	</head>
	<body>
		<form id='frm_student' name="frm_student" action="" method="post">
			<table>
				<tr>
					<td colspan="2"></td>
				</tr>
				<tr>
					<td>Name:</td>
					<td><input type="text" name='author_name'></td>
				</tr>
				<tr>
					<td>Roll No:</td>
					<td><input type="text" name='author_master_id'></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td><input type="submit" name='sbmt' value="Submit"></td>
				</tr>
			</table>
		</form>
	</body>
</html>